﻿@model KingRoad.EPM.Web.Areas.Device.Models.RoadwayModel
@{
    ViewBag.Title = "车道信息添加";
}
<script src="/Scripts/jQuery/jquery.validate.min.js" type="text/javascript"></script>
<script src="/Scripts/jQuery/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
<script type="text/javascript">
    function dialogRefresh(json) {
        DWZ.ajaxDone(json);
        if (json.statusCode == DWZ.statusCode.ok) {
            $("#pagerForm", navTab.getCurrentPanel()).submit();
            $.pdialog.closeCurrent();
        }
    }
</script>
@{Html.EnableClientValidation();}
@using (Html.BeginForm("CreateData", "Roadway", null, FormMethod.Post, new { onsubmit = "return validateCallback(this,dialogRefresh);", @class = "pageForm required-validate" }))
{
    <div class="pageFormContent sortDrag" layouth="60">
        @Html.TextBoxFor(model => model.info.PlacId, new { @type = "hidden", Value = ViewBag.placId })
        <table class="tab01 tabNo" width="100%;">
            <tr>
                <td class="td1" style="width: 30%;">车道名称：</td>
                <td>
                    @Html.TextBoxFor(model => model.info.RName, new { @class = "required input02" })
                </td>
            </tr>
            <tr class="vali">
                <td>&nbsp;</td>
                <td>@Html.ValidationMessageFor(model => model.info.RName)</td>
            </tr>
            <tr>
                <td class="td1">车道编号：</td>
                <td>
                    @Html.TextBoxFor(model => model.info.Code, new { @class = "input02" })
                </td>
            </tr>
            <tr class="vali">
                <td>&nbsp;</td>
                <td></td>
            </tr>
            <tr style="display:none">
                <td class="td1">经度：</td>
                <td>
                    @Html.TextBoxFor(model => model.info.Lon, new { @class = "required number input02",Value="0" })
                </td>
            </tr>
            <tr class="vali">
                <td>&nbsp;</td>
                <td>@Html.ValidationMessageFor(model => model.info.Lon)</td>
            </tr>
            <tr  style="display:none">
                <td class="td1">纬度：</td>
                <td>
                    @Html.TextBoxFor(model => model.info.Lat, new { @class = "required number input02",Value="0" })
                </td>
            </tr>
            <tr class="vali">
                <td>&nbsp;</td>
                <td>@Html.ValidationMessageFor(model => model.info.Lat)</td>
            </tr>
        </table>
    </div>

    <div class="formBar">
        <ul>
            <li>
                <button type="submit" class="btn btn-sm">保存</button>
            </li>
            <li>
                <button type="button" class="close btn btn-default btn-sm">取消</button>
            </li>

        </ul>
    </div>
}
